#!/bin/bash

##全局变量
version=$1
#--------------------------------#
inspath=/home/xxx
cpu_num=`grep -c "processor" /proc/cpuinfo`; #CPU核数
ip_addr=`ifconfig|grep inet|awk '{print $2}'|awk 'NR==1'` #ip地址
osType=`cat /etc/os-release|grep ID |awk NR==1|awk -F \" '{print $2}'`
basearch=`arch`
#--------------------------------#


id=`git log|grep commit|awk '{print $2}'|awk 'NR==10'`
git reset $id
git push -f
rm -rf ../hpcrunner/.git
\cp -rf ../hpcrunner/* .
git add .
git commit -a -m "注释"
git push